<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" >
<head th:fragment="common_css">
<link th:href="@{{path}/Style/StudentStyle.css(path=${#httpServletRequest.getContextPath()})}" rel="stylesheet" type="text/css"/>
<link th:href="@{{path}/Script/jBox/Skins/Blue/jbox.css(path=${#httpServletRequest.getContextPath()})}" rel="stylesheet" type="text/css"/>
<link th:href="@{{path}/Style/ks.css(path=${#httpServletRequest.getContextPath()})}" rel="stylesheet" type="text/css"/>
<script th:src="@{{path}/Script/jBox/jquery-1.4.2.min.js(path=${#httpServletRequest.getContextPath()})}" type="text/javascript"></script>
<script th:src="@{{path}/Script/jBox/jquery.jBox-2.3.min.js(path=${#httpServletRequest.getContextPath()})}" type="text/javascript"></script>
<script th:src="@{{path}/Script/jBox/i18n/jquery.jBox-zh-CN.js(path=${#httpServletRequest.getContextPath()})}" type="text/javascript"></script>
<script th:src="@{{path}/Script/Common.js(path=${#httpServletRequest.getContextPath()})}" type="text/javascript"></script>
<script th:src="@{{path}/Script/Data.js(path=${#httpServletRequest.getContextPath()})}" type="text/javascript"></script>
<script type="text/javascript">
    $().ready(function () {
        setStudMsgHeadTabCheck();
        showUnreadSysMsgCount();
    });

    //我的信息头部选项卡
    function setStudMsgHeadTabCheck() {
        var currentUrl = window.location.href;
        currentUrl = currentUrl.toLowerCase();
        var asmhm = "";
        $("#ulStudMsgHeadTab li").each(function () {
            asmhm = $(this).find('a').attr("href").toLowerCase();
            if (currentUrl.indexOf(asmhm) > 0) {
                $(this).find('a').attr("class", "tab1");
                return;
            }
        });
    }

    //显示未读系统信息
    function showUnreadSysMsgCount() {
        var unreadSysMsgCount = "0";
        if (Number(unreadSysMsgCount) > 0) {
            $("#unreadSysMsgCount").html("(" + unreadSysMsgCount + ")");
        }
    }

    //退出
    function loginOut() {
        if (confirm("确定退出吗？")) {
            window.location = "/logout.html";
        }
    }
</script>
</head>
</html>